{% extends 'admin/layout.html' %}

{% block stylesheets %}
{% endblock %}

{% block page_head %}
<!-- page head start-->
<div class="page-head">
    <h3 class="m-b-less">
        用户注册
    </h3>
    <!--<span class="sub-title">Welcome to Static Table</span>-->
    <div class="state-information">
        <ol class="breadcrumb m-b-less bg-less">
            <li><a href="#">首页</a></li>
            <li><a href="#">人事管理</a></li>
            <li class="active">用户注册</li>
        </ol>
    </div>
</div>
<!-- page head end-->
{% endblock %}

{% block main_content %}

{% import 'helper.html' as helper %}

<div class="wrapper">
    <div class="row">
        <div class="col-lg-12">
            <section class="panel">
                <header class="panel-heading head-border">
                    用户注册
                </header>
                <div class="panel-body">
                    <form class="form-horizontal" role="form" action="#" method="post">
                        {{ form.hidden_tag() }}

                        <div class="form-group">
                            {{ form.username.label(class="col-lg-2 col-sm-2 control-label") }}
                            <div class="col-lg-3">
                                {{ form.username(class="form-control") }}
                            </div>
                            {% if form.username.errors %}
                                {% for error in form.username.errors %}
                                    <li>{{ error }}</li>
                                {% endfor %}
                            {% endif %}
                        </div>
{#                        <div class="form-group">#}
{#                            {{ form.email.label(class="col-lg-2 col-sm-2 control-label") }}#}
{#                            <div class="col-lg-3">#}
{#                                {{ form.email(class="form-control") }}#}
{#                            </div>#}
{#                        </div>#}
{#                        <div class="form-group">#}
{#                            {{ form.password.label(class="col-lg-2 col-sm-2 control-label") }}#}
{#                            <div class="col-lg-3">#}
{#                                {{ form.password(class="form-control") }}#}
{#                            </div>#}
{#                        </div>#}
{#                        <div class="form-group">#}
{#                            {{ form.confirm.label(class="col-lg-2 col-sm-2 control-label") }}#}
{#                            <div class="col-lg-3">#}
{#                                {{ form.confirm(class="form-control") }}#}
{#                            </div>#}
{#                        </div>#}

                        {{ helper.render_field(form.username) }}
                        {{ helper.render_field(form.email) }}
                        {{ helper.render_field(form.password) }}
                        {{ helper.render_field(form.confirm) }}
                        <div class="form-group">
                            <div class="col-lg-3 col-lg-offset-2">
                                {{ form.accept }}
                                {{ form.accept.label }}
                            </div>
                        </div>


                        <div class="form-group">
                            <div class="col-lg-offset-2 col-lg-10">
                                <button type="submit" class="btn btn-primary">提交</button>
                                <input type="reset" class="btn btn-default" value="重置">
                            </div>
                        </div>
                    </form>
                </div>
            </section>
        </div>
    </div>
</div>

{% endblock %}

{% block scritps %}

{% endblock %}